package com.itheima.mapper;

import com.itheima.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {

    List<Role> findAll();

    List<Integer> findRoleIdsByMenuId(Integer id);


    void add(Role role);

    List<Role> findCountByCondition(@Param("queryString") String queryString);

    void edit(Role role);

    Integer findCountByRoleId(@Param("id") Integer id);

    void deleteById(@Param("id") Integer id);
}
